package com.baizhi.entity;

import java.io.Serializable;
import java.util.Map;

public class Cart implements Serializable {

    private Map<String ,CartItem> items;

    private Double totalPrice;
    private Double totalSavePrice;

    public Map<String, CartItem> getItems() {
        return items;
    }

    public void setItems(Map<String, CartItem> items) {
        this.items = items;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Double getTotalSavePrice() {
        return totalSavePrice;
    }

    public void setTotalSavePrice(Double totalSavePrice) {
        this.totalSavePrice = totalSavePrice;
    }



    @Override
    public String toString() {
        return "Cart{" +
                "items=" + items +
                ", totalPrice=" + totalPrice +
                ", totalSavePrice=" + totalSavePrice +
                '}';
    }
}
